ComponentOne Basic Library for WPF and Silverlight
MakeRelative(Popup,FrameworkElement,Func<List<AnchorMatching>>) Method


C1.Silverlight Namespace > Extensions Class > MakeRelative Method : MakeRelative(Popup,FrameworkElement,Func<List<AnchorMatching>>) Method
System.Windows.Controls.Primitives.Popup to handle.
Element used to locate the popup.
Function that provides the ordered list of AnchorMatching defining the corners to bound of both elements.
Makes the popup relative to another System.Windows.FrameworkElement.
Syntax
'Declaration
 
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Overloads Shared Sub MakeRelative( _
   ByVal popup As System.Windows.Controls.Primitives.Popup, _
   ByVal relativeElement As System.Windows.FrameworkElement, _
   ByVal getLocations As System.Func(Of List(Of AnchorMatching)) _
) 
'Usage
 
Dim popup As System.Windows.Controls.Primitives.Popup
Dim relativeElement As System.Windows.FrameworkElement
Dim getLocations As System.Func(Of List(Of AnchorMatching))
 
Extensions.MakeRelative(popup, relativeElement, getLocations)
[System.Runtime.CompilerServices.Extension()]
public static void MakeRelative( 
   System.Windows.Controls.Primitives.Popup popup,
   System.Windows.FrameworkElement relativeElement,
   System.Func<List<AnchorMatching>> getLocations
)

Parameters

popup
System.Windows.Controls.Primitives.Popup to handle.
relativeElement
Element used to locate the popup.
getLocations
Function that provides the ordered list of AnchorMatching defining the corners to bound of both elements.
See Also

Reference

Extensions Class
Extensions Members
Overload List